Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add xpack.cloud.full_story configuration #102363

Merged
merged 3 commits into from
Jun 17, 2021
Merged

Conversation

joshdover
Copy link
Contributor

Summary

Currently unused, this adds two new configuration values that will be leveraged in the future for FullStory instrumentation that will only be enabled on Elastic's ESS Cloud service.

  • xpack.cloud.full_story.enabled (default: false)
  • xpack.cloud.full_story.orgId (default: undefined)

We're adding this now so that we Cloud can start supplying these configs without breaking Kibana.

@joshdover joshdover added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.14.0 labels Jun 16, 2021
@joshdover joshdover requested a review from a team as a code owner June 16, 2021 15:12
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@joshdover joshdover added the auto-backport Deprecated - use backport:version if exact versions are needed label Jun 16, 2021
@joshdover joshdover enabled auto-merge (squash) June 16, 2021 17:55
orgId: schema.conditional(
schema.siblingRef('enabled'),
true,
schema.string({ minLength: 1 }),
Copy link
Contributor

@TinaHeiligers TinaHeiligers Jun 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure we want to set the min to 1? It seems very lenient to me. Maybe 3 would be better? It gives a few more combinations and permutations.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure how long these strings could be from FullStory. I doubt we'd ever have one that is only 1 character, but not sure where to put the limit (3, 4, 5?). I figured instead of trying to figure that out to just guard against the most likely misconfiguration which is an empty string.


describe('xpack.cloud config', () => {
describe('full_story', () => {
it('allows orgId when enabled: false', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

orgId -> org_id

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto merge got this, will fix on next PR.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 17, 2021
kibanamachine added a commit that referenced this pull request Jun 17, 2021
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants